package entity;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 试卷上的试题类
 *  此类包含: 试题、标号、用户答案
 */
public class QuestionInfo {
    //试题
    private String[] question;

    //试题标号
    private int number;

    //用户答案
    private List<Integer> userAnswers;


    public String[] getQuestion() {
        return question;
    }

    public void setQuestion(String[] question) {
        this.question = question;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public List<Integer> getUserAnswers() {
        return userAnswers;
    }

    public void setUserAnswers(List<Integer> userAnswers) {
        this.userAnswers = userAnswers;
    }

    @Override
    public String toString() {
        return "QuestionInfo{" +
                "question=" + Arrays.toString(question) +
                ", number=" + number +
                ", userAnswers=" + userAnswers +
                '}';
    }
}
